package com.bicon.botu.mall.goods.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.bicon.botu.mall.goods.vo.NoticeOfReductionVo;
import com.bicon.botu.mall.goods.vo.PriceDownNoticeVo;
import com.bicon.botu.core.base.common.entity.BaseResult;
import com.bicon.botu.mall.goods.entity.NoticeOfReduction;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;
import java.util.List;

/**
 * 降价通知Service
 *
 * @Author 刘齐
 * @Date 2017/7/25 10:11
 */
public interface NoticeOfReductionService extends IService<NoticeOfReduction> {
    /**
     * 降价通知IService
     *
     * @param userId             用户ID
     * @param productRepertoryId 产品库存ID
     * @param hopePrice          期望价格
     * @param notice             是否短信通知 0：通知 1：不通知
     * @return
     */
    BaseResult save(@RequestParam String userId,
                    @RequestParam String productRepertoryId,
                    @RequestParam BigDecimal hopePrice,
                    @RequestParam String notice);


    /**
     * 系统通知
     *
     * @return
     */
    BaseResult systemInfo(List<PriceDownNoticeVo> priceDownNoticeVoList);

    /**
     * 商家通知
     *
     * @param id 降价通知ID
     * @return
     */
    BaseResult merchantsNotice(String id);

    /**
     * 降价通知分页
     *
     * @param page 分页对象
     * @return
     */
    List<NoticeOfReductionVo> selectNoticePage(Page<NoticeOfReductionVo> page);
}
